package datesource.config;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * Created by Administrator on 2017/9/14.
 */
public class ConfigTest {
    public static ComboPooledDataSource comboPooledDataSource=null;
    static {
        comboPooledDataSource=new ComboPooledDataSource();
    }
    public static Connection getConnection() throws SQLException {
        return comboPooledDataSource.getConnection();
    }
}